java -jar signapk.jar certificate.pem key.pk8 (apk name) (save apk name)

You can only sign user apk files. this will not work with system apps/apks